package com.itheima.day02_datatype;

public class Demo04_TypeConversion {
    public static void main(String[] args) {
        int a = 20;
        byte b = (byte) a;
        System.out.println("a = " + a);
        System.out.println("b = " + b);

        int i = 1500;
        byte j = (byte) i;
        System.out.println("i = " + i);
        System.out.println("j = " + j);

        double d = 99.5;
        int m = (int) d;
        System.out.println("d = " + d);
        System.out.println("m = " + m);
    }
}
